Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODSettingsExtension


InitSettingsExtension

The InitSettingsExtension method initializes this settings extension object.

void InitSettingsExtension (in ODPart owner);
owner
A reference to this settings extension's base object.
DISCUSSION
This method is not called directly to initialize this settings extension object, but is called by a subclass-specific initialization method. By convention, every subclass of ODSettingsExtension should have an override method that is called when an instance of that subclass is created. The override method may have additional parameters beyond those of the inherited InitSettingsExtension method. The override method should call the inherited InitSettingsExtension method at the beginning of its implementation. The inherited InitSettingsExtension method in turn calls the InitExtension method associated with this settings extension's base object (ODExtension) to prepare this settings extension for use.

If you subclass ODSettingsExtension, your subclass-specific initialization method, rather than its somInit method, should handle any initialization code that can potentially fail. For example, your initialization method may attempt to allocate memory for your settings extension.

OVERRIDING
If you subclass ODSettingsExtension, you must override this method. Your override method must call its inherited method at the beginning of your implementation.

SEE ALSO
The ODExtension::InitExtension method (page 217).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help